/*维护用户模块所有的接口*/
import instance from "@/request";

/*用户列表请求  ()->{}  lambda */
export const getUserList = () => instance.get('/user/list')

// 用户数据的新增编辑
export const addOrUpdateUser = (form) => instance.post('/user/addOrUpdate', form)

// 用户分页的接口

export const userPage = (page, size) => instance.get('/user/page?page=' + page + "&size=" + size)

// 删除用户信息
export const removeUsers = (ids) => instance.get('/user/delete?ids=' + ids)

// 删除一个用户
export const removeOneUser = (id) => instance.get('/user/remove?id=' + id)

// 注册用户
export const registerUser = (form) => instance.post('/user/register', form)

// 用户认证
export const login = (form) => instance.post("/user/login", form)
